package com.situ.mall.api.product;

import com.situ.mall.common.util.Result;
import com.situ.mall.pojo.entity.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "product-service")
public interface ProductClient {
	
	/**
	 * 根据id查询商品
	 * @return
	 */
	@GetMapping("/product/selectById/{id}")
	Result<Product> selectById(@PathVariable Long id);
}
